package view;

import java.util.List;

import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;

import org.apache.log4j.Logger;

public class FwkComponentsFactory {

	private static Logger logger = Logger.getLogger(FwkComponentsFactory.class);
	
	
	public static JPopupMenu createPopupMenu(List<JMenuItem> menuItems) {
		JPopupMenu menu = new JPopupMenu();
		menu.setBorderPainted(true);
		// menu.setBackground(Color.red);
		for (JMenuItem item : menuItems) {
			item.setBorderPainted(true);
			// item.setBackground(Color.red);
			menu.add(item);
		}
		return menu;
	}

}
